home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 72 / maccd 72.iso / online / NetFinder 2.1.2 ƒ / NetFinder Script Components / Scripts / •Periodical < prev    next >
Encoding:
Text File  |  2000-03-18  |  1.3 KB  |  47 lines  |  [TEXT/R*ch]

  1. /* 
  2.     Sample ICI script for NetFinder.
  3.     
  4.     This script is executed at periodic intervals.
  5.     
  6.     NOTES:
  7.     o Full ICI programming syntax can be obtained from
  8.       <http://www.zeta.org.au/~atrn/ici/documentation.html>
  9.     o A standalone ICI app ported to MacOS will be available
  10.       for free once I (Peter) have time to clean everything up.
  11.     o A Metrowerks ICI Compiler plugin will also be available
  12.       for free when I have cleaned things up.
  13.       If you want what I have as it stands, just email me.
  14.     
  15.     (c) Copyright 2000 Peter Li.
  16.  */
  17.  
  18. /* get the current time */
  19. auto time = calendar(now());
  20. auto timeStr;
  21.  
  22. /* format the current time to the way we want it */
  23. timeStr = sprintf("%d-%d-%d, %02d:%02d:%02f", time.day,
  24.                             time.month + 1, time.year, 
  25.                             time.hour, time.minute, time.second);
  26.  
  27. /* print out the date/time */
  28.  
  29. //printf("Periodical Script Executed [" + timeStr + "]\n");
  30.  
  31.  
  32.  
  33. /*
  34.     The above routine is commented out. To uncomment simply remove
  35.     the double slash at the start of the line.
  36.     
  37.     NOTE:    ICI by default does not support C++ style comments like above.
  38.             If the changes are allowed to be merged into the ICI source tree
  39.             then it may become a part of the standard ICI syntax.
  40.  */
  41.  
  42. //NFSetICIPeriodicalTime(5);
  43.  
  44. //NFSendEngineFTPCommand("NOOP");
  45. //NFSendEngineFTPCommand("CWD .");
  46. //NFSendEngineFTPCommand("SYST", "192.168.1.8");
  47.